Machine Learning Pocket Reference by Matt Harrison
Author:Matt Harrison
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2019-09-03T16:00:00+00:00
>>> from yellowbrick.model_selection import ( ... ValidationCurve, ... ) >>> fig, ax = plt.subplots(figsize=(6, 4)) >>> vc_viz = ValidationCurve( ... RandomForestClassifier(n_estimators=100), ... param_name="max_depth", ... param_range=np.arange(1, 11), ... cv=10, ... n_jobs=-1, ... ) >>> vc_viz.fit(X, y) >>> vc_viz.poof() >>> fig.savefig("images/mlpr_1101.png", dpi=300)
Figure 11-1. Validation curve report.
The ValidationCurve class supports a scoring parameter. The parameter can be a custom function or one of the following options, depending on the task.
Classification scoring options include: 'accuracy', 'average_precision', 'f1', 'f1_micro', 'f1_macro', 'f1_weighted', 'f1_samples', 'neg_log_loss', 'precision', 'recall', and 'roc_auc'.
Clustering scoring options: 'adjusted_mutual_info_score', 'adjusted_rand_score', 'completeness_score', 'fowlkesmallows_score', 'homogeneity_score', 'mutual_info_score', 'normalized_mutual_info_score', and 'v_measure_score'.
Regression scoring options: 'explained_variance', 'neg_mean_absolute_error', 'neg_mean_squared_error', 'neg_mean_squared_log_error', 'neg_median_absolute_error', and 'r2'.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Computer Vision & Pattern Recognition | Expert Systems |
Intelligence & Semantics | Machine Theory |
Natural Language Processing | Neural Networks |
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8060)
Hadoop in Practice by Alex Holmes(5788)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5638)
Test-Driven Development with Java by Alan Mellor(4968)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(4874)
Data Augmentation with Python by Duc Haba(4813)
Principles of Data Fabric by Sonia Mezzetta(4628)
Learn Blender Simulations the Right Way by Stephen Pearson(4411)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(4388)
Big Data Analysis with Python by Ivan Marin(4385)
Functional Programming in JavaScript by Mantyla Dan(3873)
RPA Solution Architect's Handbook by Sachin Sahgal(3786)
The Age of Surveillance Capitalism by Shoshana Zuboff(3650)
The Infinite Retina by Robert Scoble Irena Cronin(3520)
Pretrain Vision and Large Language Models in Python by Emily Webber(3369)
Infrastructure as Code for Beginners by Russ McKendrick(3161)
Deep Learning with PyTorch Lightning by Kunal Sawarkar(3141)
Blockchain Basics by Daniel Drescher(3075)
The Rosie Effect by Graeme Simsion(2906)